//
//  LBTwoPassTextureSamplingFilter.h
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 11/28/12.
//  Copyright (c) 2012 UIT. All rights reserved.
//

#ifndef OpenGLGame_LBTwoPassTextureSamplingFilter_h
#define OpenGLGame_LBTwoPassTextureSamplingFilter_h

#include "LBTwoPassFilter.h"

class LBTwoPassTextureSamplingFilter : public LBTwoPassFilter{
    GLint verticalPassTexelWidthOffsetUniform;
    GLint verticalPassTexelHeightOffsetUniform;
    GLint horizontalPassTexelWidthOffsetUniform;
    GLint horizontalPassTexelHeightOffsetUniform;
    
    
    GLfloat verticalPassTexelWidthOffset;
    GLfloat verticalPassTexelHeightOffset;
    GLfloat horizontalPassTexelWidthOffset;
    GLfloat horizontalPassTexelHeightOffset;
    
public:
    LBTwoPassTextureSamplingFilter();
    virtual void init(char* vShaderStr1, char* fShaderStr1, char* vShaderStr2, char* fShaderStr2);
    void setupFilterForSize(int width, int height);
    virtual void setTexture(LBTexture* texture);
};

#endif
